package com.zyh.mysophixdemo;


import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {


    TextView textView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        textView = findViewById(R.id.tv1);

        Button btn = findViewById(R.id.btn);
        btn.setOnClickListener(v -> {
            textView.setText("热更新成功");
        });

    }
}